#!/bin/bash
conn_name=$(nmcli c s --active | grep ethernet | awk -F"  " '{print $1}')
sudo nmcli con modify "$conn_name" ipv4.dns-options "single-request"
sudo systemctl restart NetworkManager

# bash -c "$(curl -fsSL https://gitee.com/hevey88/install_script/raw/main/rocky_dns_single_request.sh)"
